package com.ssoserver.mapper;

import com.ssoserver.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> findAll();

    Integer findByUserName(@Param("username") String s);

    @Select("select count(1) from user where password = #{password}")
    Integer findPassword(@Param("password") CharSequence rawPassword);
}
